# -*- coding:utf-8 -*-
from baidu_hot import get_baidu_hot
from toutiao_hot import get_toutiao_hot
from weibo_hot import get_weibo_hot
from zhihu_hot import get_zhihu_hot
from csdn_hot import get_csdn_hot
import time
print("欢迎回来！请输入对应数字浏览热搜")
while True:
    user_input = input("1-baidu；2-toutiao；3-weibo；4-zhihu；5-CSDN；q/Q-退出；请输入：")
    if user_input == '1':
        get_baidu_hot()
    elif user_input == '2':
        get_toutiao_hot()
    elif user_input == '3':
        get_weibo_hot()
    elif user_input == '4':
        get_zhihu_hot()
    elif user_input == '5':
        get_csdn_hot()
    elif user_input == 'q' or user_input == 'Q':
        break
    else:
        print("用户非法输入，3s后刷新，重新选择操作")
        time.sleep(3)
print("退出应用成功，期待再次光临")
    
